package com.sg.dto.integration.app;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc MultiContentOperateProgressDto
 * @使用场景
 */
@Data
public class MultiContentOperateProgressDto
        extends BaseDto
        implements Serializable {

    /**
     * 定时任务调度记录ID
     */
    @ApiModelProperty("定时任务调度记录ID")
    private String timingTaskDispatchId;

    /**
     * 备用字段3
     */
    @ApiModelProperty("备用字段3")
    private String standbyField3;

    /**
     * 是否执行完成 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否执行完成")
    private String isComplete;

    /**
     * 备用字段5
     */
    @ApiModelProperty("备用字段5")
    private Double standbyField5;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        MultiContentOperateProgressDto that = (MultiContentOperateProgressDto) o;
        return (
                timingTaskDispatchId == that.timingTaskDispatchId &&
                        standbyField3 == that.standbyField3 &&
                        isComplete == that.isComplete &&
                        standbyField5 == that.standbyField5
        );
    }

    @Override
    public int hashCode() {
        return Objects.hash(
                super.hashCode(),
                timingTaskDispatchId,
                standbyField3,
                isComplete,
                standbyField5
        );
    }

}
